<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/global/global-head.jsp" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>吉车惠后台管理系统</title>
    <%@include file="/global/global-other.jsp" %>
    <script type="text/javascript">
        $(function() {
            submitForm = function( $dialog, $gird){
                $('#sys_department_form').form('submit',{
                    url:'${ctx}/bn/shop/service/insert',
                    queryParams:{_m:'exec'},
                    onSubmit:function(){
                        if($(this).form('enableValidation').form('validate')){
                            return true;
                        }else{
                            return false;
                        }
                    },
                    success:function(data){
                        var json =  eval("(" +data+ ")");
                        if(statusMsg(json)){
                            parent.$.messager.alert("提示","保存成功！","info",function(){
                                $dialog.dialog('destroy');
                                $gird.datagrid('reload');
                            });
                        }
                    }
                });
            };

        });
    </script>
</head>
<body>
<div class="form-box">
    <div class="form-body">
        <form role="form" method="POST" name="sys_department_form" id="sys_department_form" class="easyui-form form form-horizontal" data-options="novalidate:true">
            <input type="hidden" name="shopId" value="${shopId}"/>
            <div class="seg-title">
                <div class="seg-title-box">
                    <ul>
                        <li class="seg-title-box-icon" ><img src="${ctx }/assets/images/communication.gif"/></li>
                        <li class="seg-title-box-text">基本信息</li>
                    </ul>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">
                    <p class="label-txt">服务名称：</p>
                    <p class="star">*</p>
                </label>
                <div class="col-sm-8">
                    <input type="text" id="serviceName" name="serviceName"  class="form-control easyui-validatebox" style="width:100%;height:34px;line-height:34px;" required="required" validType="length[1,50]">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">
                    <p class="label-txt">原价格：</p>
                    <p class="star">*</p>
                </label>
                <div class="col-sm-3">
                    <input type="text" id="oldPrice" name="oldPrice"  class="form-control easyui-validatebox" style="width:100%;height:34px;line-height:34px;" required="required" validType="checkFloat">
                </div>
                <label class="col-sm-2 control-label">
                    <p class="label-txt">app价格：</p>
                    <p class="star">*</p>
                </label>
                <div class="col-sm-3">
                    <input type="text" id="appPrice" name="appPrice"  class="form-control easyui-validatebox" style="width:100%;height:34px;line-height:34px;" required="required" validType="checkFloat">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">
                    <p class="label-txt">介绍：</p>
                </label>
                <div class="col-sm-8">
                    <textarea id="introduce" name="introduce" class="autosize form-control" validType="length[1,100]"></textarea>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
</html>